KERNELDIR := /home/fox/sdk/sysdrv/source/kernel
CURRENT_PATH := $(shell pwd)

obj-m += driv_mpu9250.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules ARCH=arm CROSS_COMPILE=arm-rockchip830-linux-uclibcgnueabihf-
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean
